package com.allenkerr.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * Created by 小柯 on 17/9/14.
 */
@Document(collection = "time_bean")
public class TimeBean {

    @Id
    private Integer id;
//    private LocalTime start;
    private Long start;
//    private List<List<LocalTime>> times;
    private List<List<String>> times;

    public TimeBean() {
    }

    public TimeBean(Integer id, Long start, List<List<String>> times) {
        this.id = id;
        this.start = start;
        this.times = times;
    }

    @Override
    public String toString() {
        return "TimeBean{" +
                "id=" + id +
                ", start=" + start +
                ", times=" + times +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getStart() {
        return start;
    }

    public void setStart(Long start) {
        this.start = start;
    }

    public List<List<String>> getTimes() {
        return times;
    }

    public void setTimes(List<List<String>> times) {
        this.times = times;
    }
}
